package org.hilo.boot.core.web.xss;

import java.io.IOException;

import javax.servlet.FilterChain;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.web.filter.OncePerRequestFilter;

import org.hilo.boot.core.xss.XssHttpServletRequestWrapper;

/**
 * 
 * @author zollty
 * @since 2020年11月6日
 * @deprecated 去掉了暂时不成熟的xss filter
 */
public class XssFilter extends OncePerRequestFilter {
    
    @Override
    protected void doFilterInternal(HttpServletRequest request, HttpServletResponse response,
            FilterChain filterChain) throws ServletException, IOException {

        XssHttpServletRequestWrapper xssRequest = new XssHttpServletRequestWrapper(
                (HttpServletRequest) request);
        
        filterChain.doFilter(xssRequest, response);
    }

}
